window.workspace = function(){
	var response  = <?#$respons?>;
	var store, grid;
	store = new Ext.data.JsonStore({
	    autoDestroy	: true,
	    url			: response.dolist,
	    remoteSort	: true,
		baseParams	: {
			start	: 0,
			limit	: main.pageSize
		},
		autoLoad		: true,
	    root			: 'dataset',
	 	totalProperty	: 'total',
	    fields			: ['name', 'url']
	});
 
 	grid = {
		xtype		: 'grid',
		title		: response.title,
	    store		: store,
		region		: 'center', 
	    columns		: [
			{header: 'name', sortable:true, width:50, dataIndex:'name'},
			
		],
	    viewConfig	: {
	        forceFit	 : true,
	        scrollOffset : 0
	    },
		listeners	: {
			'rowdblclick':function(grid, index, e){
    			var data = grid.store.getAt(index).copy();
    			try {
    				main.openView(data.get('url'));
	    		} catch(e) {
	    			window.open(data.get('url'));
	    		}
			}
		},
		bbar		: new Ext.PagingToolbar({
			pageSize	: main.pageSize,
			store		: store,
			displayInfo	: true
		})
	};
	return grid;
}();